<?php
/**
 * CreateTime: 2023/3/3 11:41
 */

namespace App\Models\MeLawsuit;

use App\Consts\TableConsts\TableConsts;
use App\Func\StaffFunc;
use App\Models\BaseModelV2;

class MeLawsuitRecordModel extends BaseModelV2
{
    protected $table = TableConsts::ME_LAWSUIT_RECORD;

    protected $primaryKey = 'lawsuit_record_id';

    protected $fillable = [
        'lawsuit_record_id',
        'lawsuit_record_content',
        'file_ids',
        'owner_id',
        'status',
        'created_time',
        'updated_time',
    ];

    public function getOwnerStrAttribute($value){
        $all = StaffFunc::getStaffAllBySelect();
        return StaffFunc::getStaffNameByStaffId($all,$value);
    }
}